<?php
/**
 * Created by PhpStorm.
 * User: Sky
 * Date: 16/1/26
 * Time: 下午8:27
 */

use yii\helpers\Url;

$web = Url::to("@web");
//$img = Url::to("@web/img/home/about-dorabox");
$img = "http://dorabox-10018656.file.myqcloud.com/wxmall/about-dorabox";

$link = Url::home(true) . '/';


?>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>关于朵拉盒</title>
    <link type="text/css" href="<?= $web ?>/css/swiper.min.css" rel="stylesheet"/>
    <link type="text/css" href="<?= $web ?>/css/animate.css" rel="stylesheet"/>
    <script type="text/javascript" src="<?= $web ?>/js/jquery.js"></script>
    <script type="text/javascript" src="<?= $web ?>/js/swiper.min.js"></script>
    <script type="text/javascript" src="<?= $web ?>/js/swiper.animate.min.js"></script>
    <style type="text/css">
        .main {
            width: 16em;
            height: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .main img {
            display: block;
            border: none;
            width: 100%;
            margin-top: 0.5rem;
            margin-bottom: 0;
        }

        body {
            background-color: #ffffff;
        }

        * {
            padding: 0;
            margin: 0;
        }
    </style>
    <script type="application/javascript">
        $(document).ready(function () {
            var w = $(window).width();
            if (w > 640) {
                w = 640;
            }
            $("body").css("font-size", w * 20 / 320);
            $("html").css("font-size", w * 20 / 320);

            var mySwiper = new Swiper('.swiper-container', {

                direction: 'vertical',
                height: window.innerHeight,
                lazyLoading: true,
                lazyLoadingInPrevNext : true,

                // 如果需要分页器
                pagination: '.swiper-pagination',
                onInit: function (swiper) { //Swiper2.x的初始化是onFirstInit
                    swiperAnimateCache(swiper); //隐藏动画元素
                    swiperAnimate(swiper); //初始化完成开始动画
                },
                onSlideChangeEnd: function (swiper) {
                    swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
                }
            })
        });
    </script>
</head>
<body style="font-size: 20px;">
<div class="main">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-1-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-1-2.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
                <img data-src="<?= $img ?>/p-1-3.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
                <img data-src="<?= $img ?>/p-1-4.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-2-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-2-2.jpg" class="swiper-lazy ani" swiper-animate-effect="fadeInUp">
                <img data-src="<?= $img ?>/p-2-3.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
                <img data-src="<?= $img ?>/p-2-4.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
                <img data-src="<?= $img ?>/p-2-5.jpg" class="swiper-lazy ani" swiper-animate-effect="fadeInRight">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-3-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-3-2.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
                <img data-src="<?= $img ?>/p-3-3.jpg" class="swiper-lazy ani" swiper-animate-effect="fadeInRight">
                <img data-src="<?= $img ?>/p-3-4.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
                <img data-src="<?= $img ?>/p-3-5.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-4-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-4-2.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
                <img data-src="<?= $img ?>/p-4-3.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
                <img data-src="<?= $img ?>/p-4-4.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-5-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-5-2.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
                <img data-src="<?= $img ?>/p-5-3.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
                <img data-src="<?= $img ?>/p-5-4.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-6-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-6-2.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
                <img data-src="<?= $img ?>/p-6-3.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-7-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-7-2.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
                <img data-src="<?= $img ?>/p-7-3.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
                <img data-src="<?= $img ?>/p-7-4.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
            </div>
            <div class="swiper-slide">
                <img data-src="<?= $img ?>/p-8-1.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceInDown">
                <img data-src="<?= $img ?>/p-8-2.jpg" class="swiper-lazy ani" swiper-animate-effect="flipInY">
                <img data-src="<?= $img ?>/p-8-3.jpg" class="swiper-lazy ani" swiper-animate-effect="bounceIn">
                <img data-src="<?= $img ?>/p-8-4.jpg" class="swiper-lazy ani" swiper-animate-effect="lightSpeedIn">
                <img data-src="<?= $img ?>/p-8-5.jpg" class="swiper-lazy ani" swiper-animate-effect="fadeInRight">
            </div>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>
    </div>
</div>
</body>
</html>
